unit TestOneOne;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FormParent, Vcl.StdCtrls, Vcl.Buttons;

type
  TfrmTestOneOne = class(TfrmParent)
    btn1: TBitBtn;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure btn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmTestOneOne: TfrmTestOneOne;

implementation

{$R *.dfm}

procedure TfrmTestOneOne.btn1Click(Sender: TObject);
begin
 Close;
end;

procedure TfrmTestOneOne.FormClose(Sender: TObject; var Action: TCloseAction);
begin
inherited;
  Action:=caFree;
  self:= nil;
end;

end.
